﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace Projeto_Build_0.Models
{
    public class JardimEntities : DbContext
    {
        public DbSet<Pessoa> Pessoas { get; set; }
        public DbSet<Evento> Eventos { get; set; }
        public DbSet<DiaEscolar> DiaEscolars { get; set; }
        public DbSet<Sala> Salas { get; set; }
        public DbSet<Prato> Pratos { get; set; }
        public DbSet<Ementa> Ementas { get; set; }
        public DbSet<DiaDaSemana> DiaDaSemanas { get; set; }
        public DbSet<SemanaEscolar> SemanaEscolars { get; set; }
        public DbSet<Foto> Fotos { get; set; }
        public DbSet<EscolhaPrato> EscolhaPratos { get; set; }        
        public DbSet<ListaPratos> ListaPratos { get; set; }
        public DbSet<Crianca> Criancas { get; set; }
        public DbSet<LevaCrianca> LevaCriancas { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<RelatorioEducando> RelatorioEducandos { get; set; }
        public DbSet<Quota> Quotas { get; set; }
        

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

    }
}